package com.xx.service;

import com.xx.dao.WorkingDao;
import com.xx.entity.Working;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author 许欣
 * 时间：2022/5/4 12:24
 * 描述：
 */
@Service("workingService")
public class WorkingServiceImpl implements WorkingService {
    @Autowired
    private WorkingDao workingDao;

    @Override
    public List<Working> findAll() {
        return workingDao.findAll();
    }

    @Override
    public Working findBytitle(String title) {
        return workingDao.findBytitle(title);
    }

    @Override
    public List<Working> findById(Integer id) {
        return workingDao.findById(id);
    }

    @Override
    public int add(Working working) {
        return workingDao.add(working);
    }

    @Override
    public int del(int id) {
        return workingDao.del(id);
    }

}
